package com.yulan.bankback.entity.model.admin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class RemoteLoginEvent {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String uid;

    private String ip;

    private String loginPlace;

    private Date createTime;

    @TableField(exist = false)
    private String viewTime;

    public RemoteLoginEvent(String uid, String ip, String loginPlace, Date createTime, String viewTime) {
        this.uid = uid;
        this.ip = ip;
        this.loginPlace = loginPlace;
        this.createTime = createTime;
        this.viewTime = viewTime;
    }
}

